//
//  UIButton+Block.h
//  gascome-ios
//
//  Created by ykj on 2019/5/5.
//  Copyright © 2019 GasCome. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <objc/runtime.h>

typedef void(^ButtonSenderBlock) (UIButton* sender);

@interface UIButton (Block)

@property(nonatomic,copy)ButtonSenderBlock block;

+ (instancetype)quickBuildButtonWithFrame:(CGRect)frame title:(NSString *)title color:(UIColor *)color font:(UIFont *)font backgroundImage:(UIImage *)backgroundImage block:(ButtonSenderBlock)block;

@end
